// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 教师申报第二课堂活动 POST /api/second/declare */
export async function declareUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.declareUsingPOSTParams,
  body: API.bisaixinxiduixiang,
  options?: { [key: string]: any }
) {
  return request<API.RbisaixinxiVO>('/api/second/declare', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}

/** 分页查询我申报的活动(教师端) POST /api/second/getMyDeclare */
export async function getMyDeclareUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getMyDeclareUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.MyPageVoListbisaixinxiVO>('/api/second/getMyDeclare', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 根据活动id查询活动发布信息 POST /api/second/info/getRaceDetailByRaceId */
export async function getRaceDetailByRaceIdUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getRaceDetailByRaceIdUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.Rbisaixiangqingduixiang>('/api/second/info/getRaceDetailByRaceId', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 根据id查询活动申报信息 POST /api/second/info/getRaceInfoById */
export async function getRaceInfoByIdUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getRaceInfoByIdUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.RbisaixinxiVO>('/api/second/info/getRaceInfoById', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 分页查询第二课堂发布信息 POST /api/second/info/list */
export async function publishListUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.publishListUsingPOSTParams,
  body: API.bisaixiangqingduixiang11,
  options?: { [key: string]: any }
) {
  return request<API.MyPageVoListbisaixiangqingduixiang>('/api/second/info/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}

/** 分页查询第二课堂发布信息 POST /api/second/info/list2 */
export async function publishList2UsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.publishList2UsingPOSTParams,
  body: API.RacePublish,
  options?: { [key: string]: any }
) {
  return request<API.MyPageVoListRacePublish>('/api/second/info/list2', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}

/** 根据活动id查询学生助理 GET /api/second/list */
export async function listUsingGet4(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listUsingGET4Params,
  options?: { [key: string]: any }
) {
  return request<API.RListyonghuxinxiVO>('/api/second/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 分页查询第二课堂活动申报信息 POST /api/second/list */
export async function listUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listUsingPOSTParams,
  body: API.bisaixinxiduixiang,
  options?: { [key: string]: any }
) {
  return request<API.MyPageVo>('/api/second/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}

/** 教师发布第二课堂活动 POST /api/second/publish */
export async function publishUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.publishUsingPOSTParams,
  body: API.bisaixiangqingduixiang10,
  options?: { [key: string]: any }
) {
  return request<API.Rbisaixiangqingduixiang>('/api/second/publish', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}

/** 根据id删除活动申报材料url及文件 DELETE /api/second/removeDeclareFile */
export async function removeDeclareFileUsingDelete(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.removeDeclareFileUsingDELETEParams,
  options?: { [key: string]: any }
) {
  return request<any>('/api/second/removeDeclareFile', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 分页查询xx年第二课堂信息(教师端) POST /api/second/second/list */
export async function listUsingPost1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.listUsingPOST1Params,
  body: API.Second,
  options?: { [key: string]: any }
) {
  return request<API.MyPageVoListSecond>('/api/second/second/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}

/** 学生报名第二课堂 POST /api/second/student/sign */
export async function studentSignUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.studentSignUsingPOSTParams,
  body: API.xueshengyubaomingduixiang,
  options?: { [key: string]: any }
) {
  return request<API.Rint>('/api/second/student/sign', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {
      ...params,
    },
    data: body,
    ...(options || {}),
  })
}
